/**
 * 
 */
package com.kpmg.questionnaire.service.impl;

import com.kpmg.questionnaire.model.UserEntity;
import com.kpmg.questionnaire.repository.UserRepository;
import com.kpmg.questionnaire.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author Hanks
 *
 */
@Service
@Transactional
public class UserServiceImpl implements IUserService {

	@Autowired
	private UserRepository userRepostory;
	
	@Override
	public UserEntity findByEmailAndPassword(String email, String password){
		return userRepostory.findByEmailAndPassword(email, password);
	}
	
}
